package voucher_creator.errors_manager;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import voucher_creator.Constants;

public class SystemErrorRedirecting {

	public void redirectSystemErr() {

		try {
			FileOutputStream file_error = new FileOutputStream(Constants.FILE_ERROR);
			System.setErr(new PrintStream(file_error));
		} catch (FileNotFoundException ex) {
			ex.printStackTrace();
		}
	}
}
